﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Core.DS
{
    public static partial class classes
    {
        public static dynamic getClassInfo(int cid)
        {
            var sql = new Sql.SqlDataContext();
            var c = sql.DSClass.FirstOrDefault(row => row.cid == cid);
            if (c == null) return new
            {
                success = false,
                msg = "班级不存在"
            };
            return new
            {
                success = true,
                c.title
            };
        }
    }
}
